import React from 'react'

const  Item = (props) => {
return (<li>
  {props.children}
  <button onClick={()=>{props.edit(props.id)}}>编辑</button>
  <button onClick={()=>{props.del(props.id)}}>删除</button>
  </li>)
}

export default Item;